package org.smoke.bean;

/**
 *
 * <p>
 *     this is an token for user login status
 *     it may include
 *     1. login ip
 *     2. uid
 * </p>
 *
 * @author hezhiyu on 14-9-23.
 */
public class UserToken {

    private String Ip = "0.0.0.1";
    private long uid = -1;
    private long expireTime = -1;

    public UserToken (String Ip, long uid, long expireTime) {
        this.Ip = Ip;
        this.uid = uid;
        this.expireTime = expireTime;
    }

    public String getIp() {
        return Ip;
    }

    public long getUid() {
        return uid;
    }

    public long getExpireTime() {
        return expireTime;
    }

    public String toCookie() {
        return null;
    }
}
